
const models = {
  'mrp.workorder': {
    extend: BaseClass => {
      class cls extends BaseClass {
      }

      cls.record_production = async (id, fields={}, kwargs={}) => {
        return cls.call_as_write_read({
          method: 'record_production',
          args: [ id ],
          kwargs,
        }, fields );
      }

      cls.button_start = async (id, fields={}, kwargs={}) => {
        return cls.call_as_write_read({
          method: 'button_start',
          args: [ id ],
          kwargs,
        }, fields );
      }

      cls.button_finish = async (id, fields={}, kwargs={}) => {
        return cls.call_as_write_read({
          method: 'button_finish',
          args: [ id ],
          kwargs,
        }, fields );
      }


      return cls;
    },
  },
}

export default {
  models,
};

